#include<stdio.h>
#include<stdlib.h>


int main()
{
	int i, j;
	int x = 1, y = 20;
	int v=1;

	//for (x = 1; x < 10; x++)
	while(1)
	{
		if (x > 10||x<1) {
			v = -1 * v;
		}
		x = x + v;
		system("cls");
		for (i = 0; i < x; i++) {
			printf("\n");
		}
		for (j = 0; j < y; j++) {
			printf(" ");
		}
		printf("o\n");
	}
	return 0;
}